package net.sxnic.ugr.permission.action;
import java.util.List;

import net.sxinfo.core.dao.Page;
import net.sxnic.ugr.UgrActionSupport;
import net.sxnic.ugr.permission.Permission;
import net.sxnic.ugr.permission.PermissionManager;
import net.sxnic.ugr.resource.Resource;
import net.sxnic.ugr.resource.ResourceManager;

import org.springframework.beans.factory.annotation.Autowired;

@SuppressWarnings("serial")
public abstract class PermissionAction extends UgrActionSupport {

	protected Permission permission;

	@Autowired
	protected PermissionManager permissionManager;
	
	@Autowired
	protected ResourceManager resourceManager;
    
    protected Page permissions;
	
	protected String resId;
	
	protected List<Resource> resList;

	public List<Resource> getResList() {
		return resList;
	}

	public void setResList(List<Resource> resList) {
		this.resList = resList;
	}

	public Permission getPermission() {
		return permission;
	}

	public void setPermission(Permission permission) {
		this.permission = permission;
	}

	public String getResId() {
		return resId;
	}

	public void setResId(String resId) {
		this.resId = resId;
	}

	public Page getPermissions() {
		return permissions;
	}

	public void setPermissions(Page permissions) {
		this.permissions = permissions;
	}	


}
